package com.tanhua.autoconfig.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
/*
*使用@ConfigurationProperties注解将yml中tanhua.sms下面的两个属性一一对应的赋值给SmsProoerties类的两个属性，名称要相同
* */
@ConfigurationProperties(prefix ="tanhua.sms")
public class SmsProperties {
    private  String APIID;
    private String APIKEY;

    public String getAPIID() {
        return APIID;
    }

    public void setAPIID(String APIID) {
        this.APIID = APIID;
    }

    public String getAPIKEY() {
        return APIKEY;
    }

    public void setAPIKEY(String APIKEY) {
        this.APIKEY = APIKEY;
    }

    @Override
    public String toString() {
        return "SmsProperties{" +
                "APIID='" + APIID + '\'' +
                ", APIKEY='" + APIKEY + '\'' +
                '}';
    }
}
